import request from '@/utils/request'

/**
 * 获取用户列表
 */
export function getUserList(data) {
  return request({
    url: '/Student/GetRegesterList',
    method: 'post',
    data
  })
}
export function addUser(data) {
  return request({
    url: '/Student/addUser',
    method: 'post',
    data
  })
}

export function updateUser(data) {
  return request({
    url: `/Student/updateUser`,
    method: 'post',
    data
  })
}

export function deleteUser(id) {
  return request({
    url: `/Student/deleteUser?id=` + id,
    method: 'post'
  })
}

export function changeUserStatus(id, status) {
  return request({
    url: `/Student/ChangeUserStatus`,
    method: 'post',
    params: { id: id, status: status }
  })
}

